import router from '@system.router';
export default {
    data: {
        title: "语音识别",
        data1:[
            {
                title:"录音"
            },
            {
                title:"点击开始"
            }
        ]
    },

    imgclick(){
        router.push({
            uri:'pages/select_tool/select_tool',//指定要跳转的页面
        })
    },

    showDialog(e) {
        if (this.data1[1].title=='点击开始') {
            this.$element('dragDialog').show()
        }else {
            router.push({
                uri:'pages/analysis/analysis',//指定要跳转的页面
            })
        }
    },
    setSchedule(e) {
        this.$element('dragDialog').close()
        if (this.data1[1].title=='点击开始') {
            var i=0;
        }else{
            i=1;
        }
        console.log(i)
        if (i==1) {
            router.push({
                uri:'pages/analysis/analysis',//指定要跳转的页面
            })
        }else if(i==0){
            this.data1[1].title='点击结束'
            this.data1[0].title='录音中...'
        }
//        console.log(this.data1[0].title)
    },

    setSchedule2(e) {
        this.$element('dragDialog').close()
    },
}